package com.ktgj.customer.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ktgj.common.core.annotation.Excel;
import com.ktgj.common.core.web.domain.BaseEntity;

/**
 * 活动商品对象 mall_activity_product
 * 
 * @author ruoyi
 * @date 2022-05-30
 */
public class MallActivityProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long activityProductId;

    /** 活动id */
    @Excel(name = "活动id", readConverterExp = "$column.readConverterExp()")
    private Long activityId;

    /** 商品id */
    @Excel(name = "商品id", readConverterExp = "$column.readConverterExp()")
    private Long productId;

    /** 规格id */
    @Excel(name = "规格id", readConverterExp = "$column.readConverterExp()")
    private Long productSpecId;

    /** 排序 */
    @Excel(name = "排序", readConverterExp = "$column.readConverterExp()")
    private Long sort;

    /** 售价(秒杀时使用) */
    @Excel(name = "售价(秒杀时使用)")
    private BigDecimal salePrice;

    /** 会员价 */
    @Excel(name = "会员价")
    private BigDecimal memberPrice;

    /** 库存,秒杀时使用 */
    @Excel(name = "库存,秒杀时使用")
    private Long stockCount;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deleteTime;

    public void setActivityProductId(Long activityProductId) 
    {
        this.activityProductId = activityProductId;
    }

    public Long getActivityProductId() 
    {
        return activityProductId;
    }
    public void setActivityId(Long activityId) 
    {
        this.activityId = activityId;
    }

    public Long getActivityId() 
    {
        return activityId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setProductSpecId(Long productSpecId) 
    {
        this.productSpecId = productSpecId;
    }

    public Long getProductSpecId() 
    {
        return productSpecId;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setSalePrice(BigDecimal salePrice) 
    {
        this.salePrice = salePrice;
    }

    public BigDecimal getSalePrice() 
    {
        return salePrice;
    }
    public void setMemberPrice(BigDecimal memberPrice) 
    {
        this.memberPrice = memberPrice;
    }

    public BigDecimal getMemberPrice() 
    {
        return memberPrice;
    }
    public void setStockCount(Long stockCount) 
    {
        this.stockCount = stockCount;
    }

    public Long getStockCount() 
    {
        return stockCount;
    }
    public void setDeleteTime(Date deleteTime) 
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime() 
    {
        return deleteTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("activityProductId", getActivityProductId())
            .append("activityId", getActivityId())
            .append("productId", getProductId())
            .append("productSpecId", getProductSpecId())
            .append("sort", getSort())
            .append("salePrice", getSalePrice())
            .append("memberPrice", getMemberPrice())
            .append("stockCount", getStockCount())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("deleteTime", getDeleteTime())
            .toString();
    }
}
